﻿using System;
using System.Collections.Generic;
using System.Text;
using Csla;
namespace buildingLib
{
    public class Genders:
        NameValueListBase<bool, string>
    {
        private static Genders m_genders = null;
        #region Factory Method
        public static Genders GetGenders()
        {
            if (m_genders == null)
            {
                m_genders = new Genders();
                m_genders.RaiseListChangedEvents = false;
                m_genders.IsReadOnly = false;
                m_genders.Add(new NameValuePair(true, "男"));
                m_genders.Add(new NameValuePair(false, "女"));
                m_genders.IsReadOnly = true;
                m_genders.RaiseListChangedEvents = true;
            }

            return m_genders;
        }
        private Genders()
        {
           
        }
        #endregion
    }
}
